package org.aptech.hdax.advise;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;
import java.util.Date;

public class LogBeforeAdvise implements MethodBeforeAdvice {
    /**
     *
     * @param method 正在调用的方法
     * @param objects 方法的参数
     * @param o
     * @throws Throwable
     */
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println(new Date() +" call method: " + method.getName());
    }
}
